<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<link href="<?php echo $this->baseUrl;?>/admincss/mstyle.css" rel="stylesheet" type="text/css" />
</head>
<body>
<table width="100%" border="1" class="tableA">
<?php
	$mast_fields = array('uid', 'email', 'enfname', 'enlname', 'name', 'gender',
	'nation', 'birth', 'idcode', 'unit','headphoto', 'cnunit','idphoto', 'phone', 'fax', 'address', 'pcode', 'regip', 'regtime');
	
	$mast_fields_msg = array('用户编号','邮件地址', '英文姓', '英文名', '中文姓名/全名', '性别',
	'国家或地区', '出生日期', '证件号码','工作单位（中文名称）','职务（中文名称）','工作单位（英文名称）', '职务（英文名称）','联系电话', '传真', '地址', '邮编', '注册IP', '注册时间');
	?>
<?php
for ($i=0; $i < count($mast_fields); $i+= 2){
	
	$index = $i;
	$key = $mast_fields[$index];
	$name1 = $mast_fields_msg[$index];
	$content1 = htmlspecialchars($this->content[$key]);
	
	if ($key == 'gender'){
		$content1 = $content1 == 1?"男" : "女";
	}
	if ($key == 'regip')
		$content1 = long2ip($content1);
	
	$index++;
	$key = $mast_fields[$index];
	$name2 = $mast_fields_msg[$index];
	$content2 = htmlspecialchars($this->content[$key]);
	
	if ($key == 'gender'){
		$content2 = $content2 == 1?"男" : "女";
	}
	if ($key == 'regip')
		$content2 = long2ip($content2);

	echo <<<EOT
  <tr>
    <td width="20%" nowarp="no">{$name1}</td>
    <td width="30%">{$content1}</td>
    <td width="20%" nowarp="no">{$name2}</td>
    <td width="30%">{$content2}</td>
  </tr>
EOT;
}
?>
</table>
<br />
<table width="100%" border="1" class="tableA">
<?php for($i=0; $i < count($this->regitem); $i+=2){
	$name1 = $this->regitem[$i]['title'];
	$content1 = $this->uitems[$this->regitem[$i]['uuid']];
	
	$name2 = $this->regitem[$i+1]['title'];
	$content2 = $this->uitems[$this->regitem[$i+1]['uuid']];
echo <<<EOT
  <tr>
    <td width="20%" nowarp="no">{$name1}</td>
    <td width="30%">{$content1}</td>
    <td width="20%" nowarp="no">{$name2}</td>
    <td width="30%">{$content2}</td>
  </tr>
EOT;
}?>
</table>
</body>
</html>
